package org.refunite.mobile.webservice.formgenerator;


import java.util.ArrayList;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author I040022
 */
public class AbstractQuestion {

    // constants
    public static final int TYPE_INPUT_TEXT = 0;
    public static final int TYPE_INPUT_SELECT = 1;

    public static final String TYPE_DATA_STRING = "string";
    public static final String TYPE_DATA_INT = "int";
    public static final String TYPE_DATA_BARCODE = "barcode";

    private String id;
    private int inputType;
    private String dataType;
    private boolean required;
    private String constraint;
    private String constraintMessage;
    private String relevant;
    private ArrayList<TextItem> questionTextList;


    public AbstractQuestion(String id, int inputType, String dataType, ArrayList<TextItem> questionTextList){
        this.id = id;
        this.inputType = inputType;
        this.dataType = dataType;
        this.questionTextList = questionTextList;
    }

    public String getId() {
        return id;
    }

    public ArrayList<TextItem> getQuestionTextList() {
        return questionTextList;
    }

    public String getDataType() {
        return dataType;
    }

    public int getInputType() {
        return inputType;
    }

    public boolean isRequired() {
        return required;
    }

    public String getConstraint() {
        return constraint;
    }

    public String getRelevant() {
        return relevant;
    }

    public void setConstraint(String constraint) {
        this.constraint = constraint;
    }

    public void setRelevant(String relevant) {
        this.relevant = relevant;
    }

    public void setRequired(boolean required) {
        this.required = required;
    }

    public String getConstraintMessage() {
        return constraintMessage;
    }

    public void setConstraintMessage(String constraintMessage) {
        this.constraintMessage = constraintMessage;
    }

    
    


    
}
